package org.testis.webautomationmodule.services;

import org.testis.services.AtofModuleTaskExecutor;

/**
 * A class to define a task executor for web automation module.
 * This class is a singleton, so each module has its own  thread pool.
 * @author nurhat
 */
public class WebAutomationModuleTaskExecutor extends AtofModuleTaskExecutor {

    static WebAutomationModuleTaskExecutor webAutomationTaskExecutor;



    private WebAutomationModuleTaskExecutor() {
    }

    /**
     * Creates singleton web automation  module task executor
     * @return
     */
    public static WebAutomationModuleTaskExecutor getInstance() {
        if (webAutomationTaskExecutor == null) {
            
            webAutomationTaskExecutor =
                    new WebAutomationModuleTaskExecutor();
          
        }
        return webAutomationTaskExecutor;
    }
}
